//=============================================================================================
//Funcoes tela popup grupos usuarios
//=============================================================================================

function pesquisar_popup_grupos_usuarios(){
	var busca = document.form.busca.value;
	window.location ="popup_grupos_usuarios.php?busca="+busca;	
}


function associa_popup_cadastro(id,nome,cpf,dnas,rg,t1,t2,cel,cep,logradouro,numero,compl,bairro,cidade,uf,email){
	opener.parent.document.form.idcliente.value = id;
	opener.parent.document.form.cliente.value = nome;
	opener.parent.document.form.doc.value = cpf;
	opener.parent.document.form.dtnas.value = dnas;
	opener.parent.document.form.rg.value = rg;
	opener.parent.document.form.residencial.value = t1;
	opener.parent.document.form.comercial.value = t2;
	opener.parent.document.form.celular.value = cel;
	opener.parent.document.form.cep.value = cep;
	opener.parent.document.form.logradouro.value = logradouro;
	opener.parent.document.form.numero.value = numero;
	opener.parent.document.form.complemento.value = compl;
	opener.parent.document.form.bairro.value = bairro;
	opener.parent.document.form.cidade.value = cidade;
	opener.parent.document.form.uf.value = uf;
	opener.parent.document.form.email.value = email;
	window.close();	
}